﻿import request from '/@/utils/request';
enum Api {
  AddBusProductCategory = '/api/busProductCategory/add',
  DeleteBusProductCategory = '/api/busProductCategory/delete',
  UpdateBusProductCategory = '/api/busProductCategory/update',
  PageBusProductCategory = '/api/busProductCategory/page',
  GetBusProductDropdown = '/api/busProductCategory/BusProductDropdown',
  GetBusCategoryDropdown = '/api/busProductCategory/BusCategoryDropdown',
}

// 增加物料分类管理
export const addBusProductCategory = (params?: any) =>
	request({
		url: Api.AddBusProductCategory,
		method: 'post',
		data: params,
	});

// 删除物料分类管理
export const deleteBusProductCategory = (params?: any) => 
	request({
			url: Api.DeleteBusProductCategory,
			method: 'post',
			data: params,
		});

// 编辑物料分类管理
export const updateBusProductCategory = (params?: any) => 
	request({
			url: Api.UpdateBusProductCategory,
			method: 'post',
			data: params,
		});

// 分页查询物料分类管理
export const pageBusProductCategory = (params?: any) => 
	request({
			url: Api.PageBusProductCategory,
			method: 'post',
			data: params,
		});

export const getBusProductDropdown = () =>
		request({
		url: Api.GetBusProductDropdown,
		method: 'get'
		});
export const getBusCategoryDropdown = () =>
		request({
		url: Api.GetBusCategoryDropdown,
		method: 'get'
		});

